﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UCL.Powersource;
using UCL.Powersource.Analysis;

namespace DummyStatistics
{
  
 
    [Export(typeof(IStatistic))]
    public class DummyStatistics3 : StatisticTeamBase
    {
        public DummyStatistics3()
            : base()
        {
            r = new Random(3);
        }

        public override string Label
        {
            get { return "Dummy statistic 3"; }
        }

        public override string Description
        {
            get { return "Dummy statistic description"; }
        }

        public override string Name
        {
            get { return "DummyStatistic3"; }
        }

        public static readonly Guid CN_Statistic_Guid = new Guid("4E65FDEB-8424-4BD8-83E3-618D585767A0");
        public override Guid Statistic_Guid
        {
            get { return CN_Statistic_Guid; }
        }

        private Random r;

        protected override double? CalculateFor(ITfsTeamProjectConfiguration teamProjConfig, ITimeFrame timeFrame)
        {
            //Compute statistic here!
            return 5 * r.NextDouble();
        }

        public override bool RequiresBuild
        {
            get { return false; }
        }
    }
}
